

export const menus = [
    {
        path: '/index/home',
        name: 'home',
        text: '主页',
        role: 1,//权限
        icon: "el-icon-s-home",
        component: () => import('@/views/home/index.vue')
    },
    {
        path: '/index/picture',
        name: 'picture',
        text: '车辆访问数据',
        role: 1,//权限
        icon: "el-icon-s-data",
        component: () => import('@/views/picture/index.vue')
    },
    {
        path: '/index/user',
        name: 'user',
        text: '用户管理',
        role: 3,//权限
        icon: "el-icon-s-custom",
        redirect:'/index/user/userlist',
        component: () => import('@/views/user/index.vue'),
        children: [
            {
                path: '/index/user/userlist',
                name: 'userlist',
                text: '用户列表',
                role: 3,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/user/userlist.vue')
            },
            {
                path: '/index/user/useradd',
                name: 'useradd',
                text: '新增用户',
                role: 3,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/user/useradd.vue')
            }
        ]
    },
    {
        path: '/index/cars',
        name: 'cars',
        text: '车辆管理',
        role: 3,//权限
        icon: "el-icon-s-shop",
        redirect:'/index/cars/carslist',
        component: () => import('@/views/cars/index.vue'),
        children: [
            {
                path: '/index/cars/carslist',
                name: 'carslist',
                text: '车辆列表',
                role: 3,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/cars/carslist.vue')
            },
            // {
            //     path: '/index/cars/carsdetail',
            //     name: 'carsdetail',
            //     text: '车辆详情',
            //     role: 3,//权限
            //     // icon: "el-icon-s-custom",
            //     component: () => import('@/views/cars/carsdetail.vue')
            // }
        ]
    },
    {
        path: '/index/salary',
        name: 'salary',
        text: '薪资管理',
        role: 4,//权限
        icon: "el-icon-coin",
        redirect:'/index/salary/salarylist',
        component: () => import('@/views/salary/index.vue'),
        children: [
            {
                path: '/index/salary/salarylist',
                name: 'salarylist',
                text: '薪资列表',
                role: 4,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/salary/salarylist.vue')
            },
            // {
            //     path: '/index/salary/carsdetail',
            //     name: 'carsdetail',
            //     text: '车辆详情',
            //     role: 3,//权限
            //     // icon: "el-icon-s-custom",
            //     component: () => import('@/views/salary/carsdetail.vue')
            // }
        ]
    },
    {
        path: '/index/advice',
        name: 'advice',
        text: '意见邮箱',
        role: 1,//权限
        icon: "el-icon-s-promotion",
        redirect:'/index/advice/advicelist',
        component: () => import('@/views/advice/index.vue'),
        children: [
            {
                path: '/index/advice/advicelist',
                name: 'advicelist',
                text: '意见列表',
                role: 1,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/advice/advicelist.vue')
            },
            {
                path: '/index/advice/advicesend',
                name: 'advicesend',
                text: '意见反馈',
                role: 1,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/advice/advicesend.vue')
            },
            {
                path: '/index/advice/adviceedit/:id',
                name: 'adviceedit',
                text: '意见编辑',
                role: 1,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/advice/adviceedit.vue'),
                hide:1,
            },
            {
                path: '/index/advice/reply/:id',
                name: 'advicereply',
                text: '意见回复',
                role: 1,//权限
                // icon: "el-icon-s-custom",
                component: () => import('@/views/advice/reply.vue'),
                hide:1,
            },
        ]
    }
]